<?php
include('../../inc/global.inc');

if($_POST[tj_act]){
$is_jm=$_POST[is_jm]?$_POST[is_jm]:0;
@mysql_query("update m_message set is_jm='$is_jm' where id='".$_POST['iid']."'");
echo "<script>location='".$_POST['urls']."';</script>";
}
?>
<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
<BODY>
<center>
<table width="90%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">留言信息&nbsp;&nbsp;<a href="javascript:history.go(-1)">返回</a></td>
  </tr>
</table>
<?php
$rs=mysql_query("select * from m_message where id='".$_GET['xg_id']."'");
$row=mysql_fetch_array($rs);
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
	<tr align='center' bgcolor='#D8EAF4'>
	  <td height="35" colspan="2" valign="middle" nowrap bgcolor="#8DA8CF" class='category'>留言信息</td>
	</tr>
    <tr>
      <td width="148" height="30" align="right" bgcolor="#8DA8CF">会员ID：</td>
    <td width="712" bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row[member_id]?></td>
  </tr>
	<tr>
      <td height="30" align="right" bgcolor="#8DA8CF">主题：</td>
    <td width="712" bgcolor="#FFFFFF" style="padding-left:5px;"><a href="<?=$row[m_web]?>" target="_blank"><?=$row[m_subject]?></a></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">留言内容：</td>
    <td bgcolor="#FFFFFF" style="padding:5px;"><?=$row[m_content]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">联系人：</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_name']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">联系电话：</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_tel']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">邮箱:</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_email']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">QQ/MSN</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_qq']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">联系地址</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row[m_addr]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF"><strong>时间:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['add_time']?></td>
 </tr>
 <form method="post" action="">
  <tr>
    <td height="30" colspan="2" align="left" bgcolor="#8DA8CF">代理加盟管理</td>
    </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">审核通过</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;">
	<input type="radio" name="is_jm" value="1" <?php if($row[is_jm]==1){echo "checked";}?>>是&nbsp;<input type="radio" name="is_jm" value="0" <?php if($row[is_jm]==0){echo "checked";}?>>否</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#8DA8CF">&nbsp;</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><input type="submit" value="提交">
	<input type="hidden" name="tj_act" value="ok">
	<input type="hidden" name="urls" value="<?=$_SERVER['HTTP_REFERER']?>">
	<input type="hidden" name="iid" value="<?=$row['id']?>"></td>
  </tr>
  </form>
</table>
</center>
</BODY>
</HTML>
